package cn.yangke.basic.service;

import cn.yangke.basic.query.BaseQuery;
import cn.yangke.basic.util.PageList;

import java.util.List;

/**
 * @Author YangKe
 * @Date 2022/6/8 15:02
 */
public interface IBaseService<T> {
    List<T> queryAll();

    T queryById(Long id);

    void removeById(Long id);

    void save(T t);

    void update(T t);

    /**
     * 分页加高级查询
     * @param query
     * @return
     */
    PageList<T> queryPage(BaseQuery query);



    /**
     * 批量删除
     * @param ids
     */
    void batchRemove(Long[] ids);
}
